package ${classPath};

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "${classComment}新增")
public class ${domain}AddCommand {

<#list fieldList as field>
  

<#compress>
  /** ${field.comment} */<#list field.annotations as annotation> <#--内层循环-->
<#if !annotation?starts_with("@Column")>
  ${annotation}
</#if>
</#list>
  @ApiModelProperty(value = "${field.comment}")
  private ${field.type} ${field.name};
</#compress>
</#list>


  public ${domain}AddBo convertToBo() {
    return BeanUtils.copyPropertiesIgnoreNull(this, ${domain}AddBo.class);
  }

}
<#--
 ${annotation?substring(annotation?last_index_of("length")+7)}
 ${annotation?substring(annotation?last_index_of("length")+7)?substring(0,annotation?last_index_of(","))}
 -->